<div class="costumes index">
    <h2 class="left"><?php __('Trajes');?></h2>
    <div class="actions specific right">
        <ul>
            <li><?php echo $this->Html->link(__('Agregar Nuevo', true), array('action' => 'add')); ?> </li>
        </ul>
    </div>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('Nombre','name');?></th>
            <th><?php echo $this->Paginator->sort('Descripción','description');?></th>
            <th><?php echo $this->Paginator->sort('Cantidad','count');?></th>
            <th class="actions"><?php __('Acciones');?></th>
        </tr>
        <?php
        if (empty($costumes)) {
            ?>
            <tr>
                <td colspan="4">No se encontraron trajes</td>
            </tr>
            <?php
        }
        $i = 0;
        foreach ($costumes as $costume):
            $class = null;
            if ($i++ % 2 == 0) {
                $class = 'altrow';
            }
            ?>
        <tr class="<?php echo $class;?>">
            <td><?php echo $costume['Costume']['name']; ?>&nbsp;</td>
            <td><?php echo $costume['Costume']['description']; ?>&nbsp;</td>
            <td><?php echo $costume['Costume']['count']; ?>&nbsp;</td>
            <td class="actions">
                    <?php echo $this->Html->link($this->Html->image('icons/magnifier.png'), array('action' => 'view', $costume['Costume']['id']), array('title' => __('Ver', true), 'escape' => false)); ?>
                    <?php echo $this->Html->link($this->Html->image('icons/pencil.png'), array('action' => 'edit', $costume['Costume']['id']), array('title' => __('Editar', true), 'escape' => false)); ?>
                    <?php echo $this->Html->link($this->Html->image('icons/cross.png'), array('action' => 'delete', $costume['Costume']['id']), array('title' => __('Eliminar', true), 'escape' => false), sprintf(__('Seguro que desea eliminar este Traje?', true), $costume['Costume']['id'])); ?>
            </td>
        </tr>
        <?php endforeach; ?>
    </table>
    <p>
        <?php
        echo $this->Paginator->counter(array(
        'format' => __('Página %page% de %pages%, mostrando %current% registros de %count% en total, a partir del registro %start%, terminando en el %end%', true)
        ));
        ?>	</p>

    <div class="paging">
        <?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
        |
        <?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
    </div>
</div>